import request from '@/utils/request.js'

export const register = data => request.post('user/register', data)
export const login = data => request.post('user/login', data)
export const getUserInfo = () => {
  return request('/user/currentUser')
}
